
const fs = require("fs")
const path = require("path")

function getFile(name) {
    try {
        return fs.readFileSync(path.join(__dirname, "../", "/tools", `/${name}.js`)) + "\r\n"
    } catch (error) {
        console.log(error.message, "读入文件错误");
        return ""
    }
}

function getCode() {
    return getFile("envFunc") + getFile("toolsFunc")
}



module.exports = { getCode, getFile }

